package top.chenfu.blog.dao;

import lombok.extern.slf4j.Slf4j;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.jdbc.SQL;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;
import top.chenfu.blog.entity.Article;

import java.util.List;
import java.util.Map;

/**
 * @Auther chenfu
 * @2019/10/30 17:05
 * @Desc
 */
@Repository
public interface ArticleMapper extends Mapper<Article> {

    List<Article> getArticlesByUseridAndState(Long id, String keywords, Integer state);

    Integer getArticleCountByState(Integer state, Long id, String keywords);
}
